import Layout from "@/layout/index.vue";

export default [
  {
    path: '/shop/goods-spec-edit',
    component: Layout,
    hidden: true,
    permissions: ['shop:goods:edit'],
    children: [
      {
        path: 'index/:goodsId(\\d+)',
        component: () => import('@/views/shop/goods/spec/index'),
        name: 'GoodsSpecEdit',
        meta: { title: '商品规格配置', activeMenu: '/shop/goods/goods' }
      }
    ]
  },
  {
    path: '/shop/goods-add',
    component: Layout,
    hidden: true,
    permissions: ['shop:goods:edit'],
    children: [
      {
        path: 'index',
        component: () => import('@/views/shop/goods/goodsAdd'),
        name: 'GoodsAdd',
        meta: { title: '商品编辑', activeMenu: '/shop/goods/store' }
      }
    ]
  },
]
